<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUnitLevelTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('unit_grade', function (Blueprint $table) {
            $table->increments('id');
            $table -> string('name')->nullable()->comment('级别名称');
            $table -> string('remark')->nullable()->comment('备注');
            $table -> integer('icon_id')->default(0)->comment('级别标志');
            $table -> integer('level')->nullable()->comment('级别');
            $table -> softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
